 <?
	$group = $dsfm_common->get_all("common_group");
	$tpl->assign("group", $group);

	$evaluation = $dsfm_common->get("ext_evaluation", "year = ".$_SESSION['year']." and gid = $id");
	$tpl->assign("evaluation", $evaluation);

	$tpl->assign("id", $_GET['id']);
	$tpl->assign("mode", $mode);

	if($mode=="preview"){
		$tpl->draw("evaluation-preview");
	}else{
		$tpl->draw("evaluation");
	}
?>